﻿using Centny.PdfReader.Types;
using Centny.PdfReader.util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Centny.PdfReader.Graphics
{
    public class PdfGraphicsState : PdfClonable
    {
        public PdfTextState TextState { get; set; }
        public PdfMatrix Ctm { get; set; }
        //public double Scale { get; set; }
        public PdfGraphicsState()
        {
            this.TextState = new PdfTextState();
            this.Ctm = new PdfMatrix();
            //this.Scale = 1;
        }

        public object Clone()
        {
            PdfGraphicsState gs = new PdfGraphicsState();
            gs.TextState = this.TextState.Clone() as PdfTextState;
            gs.Ctm = this.Ctm.Clone();
            return gs;
        }
    }
}
